home *** CD-ROM | disk | FTP | other *** search
- Path: dns.plano.net!news
- From: jdunn@plano.net
- Newsgroups: comp.lang.c++
- Subject: Re: Newbie Q: references
- Date: 9 Feb 1996 03:50:50 GMT
- Organization: Plano Internet
- Message-ID: <4fegaq$gvc@dns.plano.net>
- References: <4feg4e$ctc@dns.plano.net>
- Reply-To: jdunn@plano.net
- NNTP-Posting-Host: aux28.plano.net
- X-Newsreader: IBM NewsReader/2 v1.09
-
- I'll take another pass at this with hard returns:
- As I understand what happens under the compiler covers, when we pass a reference
- into a method (function), what actually happens is that the compiler creates another
- entry in it's symbol table to alias the same address location. This new alias has a
- different scope and is scoped only in the function it is passed to.
- Does that mean that the compiler actually does not put any thing at all on the stack
- for the reference, but just allows you to use the reference inside the function's scope?
- Is this the real reason for references ?
- That they take no overhead in the function calls and returns ?
-
-